<?php
Globals::requireClass('Table');

class CirclelikeTable extends Table
{
	public static $defaultConfig = array(
		'table' => 'tb_circle_like'
	);
	
	public function getUserLike($uid){
	    $return = array();
	    $uid = (int)$uid;
	    $sql = "select cid from tb_circle_like where uid = {$uid} and status = 1 ";
	    $this->database->query($sql);
	    $re = $this->database->getList();
	    if(is_array($re)){
	        foreach ($re as $v){
	            $return[] = $v['cid'];
	        }
	    }
	    return $return;
	}
	
}

Config::extend('CirclelikeTable', 'Table');
